﻿using System;

namespace SXICE.Core.Infrastructure
{
    /// <summary>
    /// 日志接口
    /// </summary>
    public interface ILog
    {
        /// <summary>
        /// 异常
        /// </summary>
        /// <param name="ex">异常对象</param>
        void Error(Exception ex);

        /// <summary>
        /// 记录信息
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="content">内容</param>
        void Info<T>(T content);

        /// <summary>
        /// 调试日志
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="content">内容</param>
        void Debug<T>(T content);

        /// <summary>
        /// 记录日志
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="content">日志内容</param>
        void Warn<T>(T content);
    }
}
